<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Partno/index')}">列表</a></li>
        <li class="active"><a href="{:url('Partno/add')}">添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Partno/addPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 零件名称:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="name" value="{$vo.name|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 图号:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="drawingno" value="{$vo.drawingno|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 厚:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="d" value="{$vo.d|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 宽:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="w" value="{$vo.w|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 长:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="h" value="{$vo.h|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 净重:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="oneweight" value="{$vo.oneweight|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 总重:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="weight" value="{$vo.weight|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 数量:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="sheets" value="{$vo.sheets|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 牌号:</label>
            <div class="col-md-6 col-sm-10">
                <select name="grade_id" class="form-control selectpicker" data-live-search="true">
                    <option value="">请选择</option>
                    <volist name="grade_id_arr" id="ao">
                        <option
                        <if isset($vo.grade_id)&&$vo.grade_id==$ao.id>selected</if>
                        value="{$ao.id}">{$ao.g_name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required"></span> 备注:</label>
            <div class="col-md-6 col-sm-10">
                <input placeholder="" type="text" class="form-control" name="remark" value="{$vo.remark|default=''}">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-2 control-label"><span class="form-required"></span> 工序:</label>-->
<!--            <div class="col-md-6 col-sm-10">-->
<!--                <input placeholder="" type="text" class="form-control" name="processes"-->
<!--                       value="{$vo.processes|default=''}">-->
<!--            </div>-->
<!--        </div>-->
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
            <a class="btn btn-default" href="{:url('Partno/index')}">返回</a>
        </div>
    </form>

</div>
<script src="/static/js/admin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
</script>
</body>
</html>